import { NAMESPACE_SEP } from './constants';

const { toString } = Object.prototype;

export const isFunction = (func) => toString.call(func) === '[object Function]';

export const isActionType = actionType => actionType && actionType.indexOf(NAMESPACE_SEP) > -1;